﻿using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml.Serialization;

namespace AnimationEditor
{
 public class Frames
 {

     public Rectangle SourceRect;

     public Rectangle CollisionRect;

     
     public Rectangle AttackRect;


     public Point anchorPoint;
     public string trigger;
     private float Duration;

     public float Durations
     {
         get { return Duration; }
         set { Duration = value; }
     }

       

 }

 public class Animation
 {
     int imageID;
     string FilePath;
     int FrameCount;
     bool ifLooping;

     public bool IfLooping
     {
         get { return ifLooping; }
         set { ifLooping = value; }
     } 


     public int FrameCounts
     {
         get { return FrameCount; }
         set { FrameCount = value; }
     }

     

     List<Frames> lFrames;

     int currFrame;

     public int CurrFrame
     {
         get { return currFrame; }
         set { currFrame = value; }
     }

     [System.Xml.Serialization.XmlArrayItemAttribute(ElementName = "FrameList", IsNullable = false)]
     public List<Frames> Frames
     {
         get { return lFrames; }
         set { lFrames = value; }
     }

     public string FilePath1
     {
         get { return FilePath; }
         set { FilePath = value; }
     }

     public int ImageID
     {
         get { return imageID; }
         set { imageID = value; }
     }


 }





}
